package xin.marcher.module.lifecycle.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xin.marcher.module.lifecycle.domain.entity.ItemExpriResultBufferDO;

import java.util.List;

/**
 *
 */
@Mapper
public interface ItemExpriResultBufferMapper extends BaseMapper<ItemExpriResultBufferDO> {

    /**
     * 批量插入考核结果缓冲记录
     *
     * @param bufferEntityList
     */
    Integer insertBatch(@Param("list") List<ItemExpriResultBufferDO> bufferEntityList);

    /**
     * 批量逻辑删除本批次考核结果数据
     *
     * @param list
     * @param delFlag
     * @return
     */
    Integer batchDelete(@Param("list") List<ItemExpriResultBufferDO> list, @Param("delFlag") Integer delFlag);
}
